package yunplus.io.hchome.display.video;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by dxq on 2017/6/27.
 */

public class DeviceInfo implements Parcelable {
    public static final String NAME = "name";
    public static final String ADDRESS = "address";
    public static final String PORT = "port";
    public static final String USERNAME = "user_name";
    public static final String PASSWD = "passwd";

    public String name;
    public String address;
    public int port;
    public String username;
    public String passwd;

    public DeviceInfo() {
    }

    public DeviceInfo(String name, String address, int port, String username, String passwd) {
        this.name = name;
        this.address = address;
        this.port = port;
        this.username = username;
        this.passwd = passwd;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPasswd() {
        return passwd;
    }

    public void setPasswd(String passwd) {
        this.passwd = passwd;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeInt(port);
        parcel.writeString(name);
        parcel.writeString(address);
        parcel.writeString(username);
        parcel.writeString(passwd);

    }
}
